package com.nannybear.View;

import android.view.View;
import android.widget.ImageButton;
import android.widget.RelativeLayout;

import com.nannybear.R;

/**
 * @brief View of baby state
 */
public class BabyStateScreen extends Screen{
    /********** DECLARATIONS **********/
    // Widget of the view
    private RelativeLayout bbstate_screen_layout;
    private Timeline timeline;

    // Tab buttons
    private ImageButton homeButton;
    private ImageButton tempButton;
    private ImageButton brightnessButton;
    private ImageButton humidityButton;
    private ImageButton babyStateButton;
    private ImageButton settingsButton;
    private ImageButton helpButton;

    /************ METHODS ************/
    /**
     * @brief constructor.
     */
    public BabyStateScreen(){
    }


    /**
     * @brief Show the view
     */
    public void display(){ 
        bbstate_screen_layout.setVisibility(View.VISIBLE);
        getBabyStateButton().setBackgroundResource(R.drawable.sound_active);
    }

    /**
     * @brief Close the view
     */
    public void close(){
        bbstate_screen_layout.setVisibility(View.GONE);
        getBabyStateButton().setBackgroundResource(R.drawable.sound_grey);
    }


    /*********** ACCESSORS ***********/
    public void setHomeButton(ImageButton homeBtn) {
        this.homeButton = homeBtn;
    }

    public ImageButton getHomeButton() {
        return homeButton;
    }

    public void setTempButton(ImageButton tempBtn) {
        this.tempButton = tempBtn;
    }

    public ImageButton getTempButton() {
        return tempButton;
    }

    public void setBrightnessButton(ImageButton brightnessBtn) {
        this.brightnessButton = brightnessBtn;
    }

    public ImageButton getBrightnessButton() {
        return brightnessButton;
    }

    public void setHumidityButton(ImageButton humidityBtn) {
        this.humidityButton = humidityBtn;
    }

    public ImageButton getHumidityButton() {
        return humidityButton;
    }

    public void setBabyStateButton(ImageButton babyStateBtn) {
        this.babyStateButton = babyStateBtn;
    }

    public ImageButton getBabyStateButton() {
        return babyStateButton;
    }

    public void setSettingsButton(ImageButton settingsBtn) {
        this.settingsButton = settingsBtn;
    }

    public ImageButton getSettingsButton() {
        return settingsButton;
    }

    public void setHelpButton(ImageButton helpBtn) {
        this.helpButton = helpBtn;
    }

    public ImageButton getHelpButton() {
        return helpButton;
    }


	public RelativeLayout getBbstate_screen_layout() {
		return bbstate_screen_layout;
	}

	public void setBbstate_screen_layout(RelativeLayout bbstate_screen_layout) {
		this.bbstate_screen_layout = bbstate_screen_layout;
	}

    public Timeline getTimeline() {
        return timeline;
    }

    public void setTimeline(Timeline timeline) {
        this.timeline = timeline;
    }
}
